package EC;

public class Bank {
    private int out;
    public void setOut(int out) throws BankException{
        if(out%100!=0){
            throw new BankException(out);
        }
        else{
            System.out.println("取款成功！！！");
            this.out=out;
        }
    }
    public int getOut() {
        return out;
    }
}
